diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-07-22 17:02:51 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-07-22 17:02:51 +0100 |
| commit | 96a5e5d7fe6af05163de84b522effb6f1893dbaf (patch) | |
| tree | f7ca6477a93292e28fc46b02541a1a4790e7f1a3 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | |
| parent | abccf06f978217831e0eedd7182ab356dd20659e (diff) | |
Support string addition in Patio code gen
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
1 files changed, 23 insertions, 0 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..a0ddbbd8 --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,23 @@ +Compilation unit elements: + +( + function-decl + "shed__runtime__string_add" + params=(("left" int) ("right" int)) + return-type=int +) + +Locals: + * ("tmp__0" int) + +Args: + +Instructions: + +( + (call (local "tmp__0") "shed__runtime__string_add" ((local "b") (local "c"))) +) + +Temporary stack: + * tmp__0 + * a |
